home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / editor / words3.lha / Words / WarpSPELL / auto.ged next >
Text File  |  1995-06-29  |  1KB  |  38 lines

  1. /* $VER: AutoConfig macro */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  13.  
  14. 'REQUEST BODY="A new syntax parser has been installed.|Do you want to use this parser ?" BUTTON="_USE|no"'
  15.  
  16. if (RESULT = 1) then do
  17.  
  18.     'SYNTAX LOAD CONFIG="GOLDED:presets/warpSPELL.syn" USE=TRUE'
  19.  
  20.     'REQUEST HIDE=FALSE BODY="GoldED''s preferences have been changed.|Save new configuration ?" BUTTON="_SAVE|no"'
  21.  
  22.     if (RESULT = 1) then
  23.         'PREFS SAVE'
  24.  
  25.     'SYNTAX ASK'
  26. end
  27.  
  28. /* ---------------------------- END OF YOUR CODE --------------------- */
  29.  
  30. 'UNLOCK' /* VERY important: unlock GUI */
  31. EXIT
  32.  
  33. SYNTAX:
  34.  
  35. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  36. 'UNLOCK'
  37. EXIT
  38.